package cn.edu.zafu.bigdata.x.xiejunjie.例4_3;

public class VarTest {
    private int x = 1;
    private int y = 1;
    private int z = 1;

    void changeVar(int a,int b,int c){
        x = a;
        int y = b;
        int z = 9;
        System.out.println("In changVar:"+"x = "+x+" y = "+y+" z = "+z);
        this.z = c;
    }

    String getXYZ(){
        return "x = "+x+" y = "+y+" z = "+z;
    }

    public static void main(String[] args) {
        VarTest v = new VarTest();
        System.out.println("Before changVar:"+v.getXYZ());
        v.changeVar(10,10,10);
        System.out.println("After changVar:"+v.getXYZ());
    }
}
